﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace DistributeTransaction.Models
{
    public class OrderDetail
    {
        public int OrderID { get; set; }

        [Key]
        public int ProductId { get; set; }

        public string ProductName { get; set; }

        public decimal UnitPrice { get; set; }

        public int Quantity { get; set; }

        public decimal Coupon { get; set; }

        public string Status { get; set; }

        public decimal SubTotal
        {
            get
            {
                return UnitPrice * Quantity - Coupon;
            }
        }


    }
}